package ModeLayer;


/**
 * @author () 
 * @version (11-03-2013)
 */
/**
 * Exercise no. 12
 */
public class Tree
{
 private String sort;
 private int lifespan;
 private double costPrSquareKilometre;
 private double revenuePrSquareKilometre;
 
 /**
  * Exercise no. 13
  */
 
 public Tree(String newSort, int newLifespan, double newCostPrSquareKilometre, double newRevenuePrSquareKilometre)
 {
  sort = newSort;
  lifespan = newLifespan;
  costPrSquareKilometre = newCostPrSquareKilometre;
  revenuePrSquareKilometre = newRevenuePrSquareKilometre;
  
 }
 
 /**
  * Exercise no. 14
  */
 
  public void setSort(String changeSort)
  {
   sort = changeSort;
  }
  
  public String getSort()
  {
   return sort;
  }
  
  public void setLifespan(int changeLifespan)
  {
   lifespan = changeLifespan;
  }
  
  public int getLifespan()
  {
   return lifespan;
  }
  
  public void setCostPrSquareKilometre(double changeCostPrSquareKilometre)
  {
   costPrSquareKilometre = changeCostPrSquareKilometre;
  }
  
  public double getCostPrSquareKilometre()
  {
   return costPrSquareKilometre;
  }
  
  public void setRevenuePrSquareKilometre(double changeRevenuePrSquareKilometre)
  {
   revenuePrSquareKilometre = changeRevenuePrSquareKilometre;
  }
  
  public double getRevenuePrSquareKilometre()
  {
   return revenuePrSquareKilometre;
  }
  
  
  /**
   * Exercise no. 15 
   */
  public void PrintTreeDetails()
  {
   System.out.println("Tree details:");
   System.out.println("Sort:");
   System.out.println("Lifespan:");
   System.out.println("Cost pr. square km:");
   System.out.println("Revenue pr. square km:");
}
}


































